package com.my.launcher.config;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.core.Ordered;

import java.util.Properties;

/**
 * 多配置基础接口
 * @author timo 2021/2/6
 */
public interface LauncherService extends Ordered, Comparable<LauncherService> {
    void launcher(final SpringApplicationBuilder builder, final String appName, Properties propsRead , final boolean isLocalDev);

    @Override
    default int getOrder() {
        return 0;
    }

    @Override
    default int compareTo(final LauncherService o) {
        return Integer.compare(this.getOrder(), o.getOrder());
    }
}
